package view.component.render
{
import framework.view.components.container.RepeaterRenderProxy;

import values.other.ConditionValue;

/**
 * BuildingUpgradeRequirementItemRender
 * @author jliang
 *
 */
public class BuildingUpgradeRequirementItemRender extends RepeaterRenderProxy
{
	//==========================================================================
	//  Constructor
	//==========================================================================
	public function BuildingUpgradeRequirementItemRender()
	{
		super();
	}
	//==========================================================================
	//  Overridden methods: RepeaterRenderProxy
	//==========================================================================
	protected var vo:ConditionValue;
	
	override public function set data(value:*):void
	{
		vo = value;
		
		skin.gotoAndStop(vo.isReached ? 2 : 1);
		
		skin.label.text = vo.desc;
	}
	
	override public function get data():*
	{
		return vo;
	}
}
}



